<?php
/**
 * Project: AIGC
 * Author: moufer <moufer@163.com>
 * Date: 2024/7/20 15:23
 */

namespace module\chat\model;

class Visrole extends Role
{
    protected $globalScope = ['type'];

    public function scopeType($query): void
    {
        $query->where('type', 'visrole');
    }

    public function sourceType(): string
    {
        return 'chat:visrole';
    }
}